Dynomotion

Group: DynoMotion Message: 14576 From: mmurray70@hotmail.com Date: 4/10/2017
Subject: How to isolate DAC signal to spindle drive?

Hi,


Ive had a minor issue with my spindle since I bought my machine. When the spindle is turning very slow the rpm fluctuates up and down slightly and this makes things difficult for spindle orientation. And also orientation speed tends to vary a little based on the most recent speed it was ran at. 


I've been trying to fix this issue and today i noticed that my VFD manual says the signal common is isolated and must not be grounded. And of course right now it is grounded on Kanalog. Could this be my problem? What kind of a gadget do i need to fix this problem? Can anybody make any suggestions? Preferably something from digikey that i can get quickly. Thanks.


Mark

Group: DynoMotion Message: 14577 From: mmurray70@hotmail.com Date: 4/10/2017
Subject: Re: How to isolate DAC signal to spindle drive?
Never mind guys, just tried it again running from parameter unit with signal wires disconnected. Its the same thing unfortunately. 
Group: DynoMotion Message: 14578 From: Tom Kerekes Date: 4/10/2017
Subject: Re: How to isolate DAC signal to spindle drive?
Do you have encoder feedback?  If so you might be able to use closed loop control. 

Regards
TK

On Apr 10, 2017, at 10:35 PM, mmurray70@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:

 

Never mind guys, just tried it again running from parameter unit with signal wires disconnected. Its the same thing unfortunately. 

Group: DynoMotion Message: 14579 From: mmurray70@hotmail.com Date: 4/10/2017
Subject: Re: How to isolate DAC signal to spindle drive?
Hi Tom,

I just spend a couple hours at this and it looks like most my problem is likely related to kflop somehow. Seems like my orientation is comming up short or overshooting based on the S value in Kmotioncnc. I set a persist.userdata variable to override the current spindle speed and then set a specific speed in my orientation program. This is working fine. I've checked DAC Voltage in kmotion while orientating and even triple checked with voltmeter wired to vfd signal, its always at a constant voltage while orientating, regardless of S value. 

But for some reason it always comes up short when im using a low S value and overshoots when i use a high S value. Most times it falls in the notch and is ok, but i did some testing tonight away from the notch and it always comes up shorter with a low S value. 

I've tripple checked the signal voltage to drive, cant see an issue with this. I even tried programming DAC higher temporarily prior to orientation to see if it was somehow remembering the previous setting, but this is not the case. Its always related to current S value. 

So the only other thing is timing. Is there any chance Kflop is slower to turn off my spindle while S is set higher? I know this makes no sense but i cant think of anything else. This has me baffled. Here is my orientation code:

if (ReadBit(157)) // If in low gear
{
persist.UserData[155] = 1; // Enable orientate speed override
Delay_sec(0.05); // Delay 0.05s
DAC(3,-80); // set motor rpm 
SetBit(154); // spindle on
while (!ReadBit(1045)) WaitNextTimeSlice(); // wait for orientation signal
Zero(4); // Zero Spindle Axis
while (chan[4].Position < 4000) WaitNextTimeSlice(); // Wait until half way around to turn on air cylinder
SetBit(63); // turn on orientation air cylinder
while (chan[4].Position < 6500) WaitNextTimeSlice(); // Wait until almost around
ClearBit(154); // turn spindle off
}

Any Ideas? The occasional failed orientation is driving me crazy! Thanks again!

Mark
Group: DynoMotion Message: 14580 From: mmurray70@hotmail.com Date: 4/11/2017
Subject: Re: How to isolate DAC signal to spindle drive?
Did a little more testing and i cant explain what looks like a tiny delays with a low S value, but it certainly seems to be there for sure. 

I was unable to fix this, but I do have the orentation working faster and reliably now. I programmed it to run at a decent speed and slow down for the last little bit. This way i can drive almost completely to notch before turning off spindle and it works better with the variation from the S value. 

Can anybody explain what might have happened with this? Makes no sense to me. At least its working now anyway. Thanks

 
Group: DynoMotion Message: 14581 From: Tom Kerekes Date: 4/11/2017
Subject: Re: How to isolate DAC signal to spindle drive?
Hi

I can't really follow everything you are saying. But it seems you are controlling by setting the DAC manually. In this case you should be sure any Axis channel configured to write to that DAC is disabled. 

Regards 
TK

On Apr 11, 2017, at 10:43 AM, mmurray70@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:

 

Did a little more testing and i cant explain what looks like a tiny delays with a low S value, but it certainly seems to be there for sure. 


I was unable to fix this, but I do have the orentation working faster and reliably now. I programmed it to run at a decent speed and slow down for the last little bit. This way i can drive almost completely to notch before turning off spindle and it works better with the variation from the S value. 

Can anybody explain what might have happened with this? Makes no sense to me. At least its working now anyway. Thanks

 

Group: DynoMotion Message: 14582 From: mmurray70@hotmail.com Date: 4/11/2017
Subject: Re: How to isolate DAC signal to spindle drive?
Yes the only DAC that i was setting manually was just for spindle, not any of the Axes. 

Bascially what i found was it took longer for spindle to be commanded off when S value was higher. If S was really low (say 100) seems like the ClearBit command was happening faster because it would come up short of my orientation position. Based on the rpm and amount of error, were probably talking somewhere around 0.060 seconds difference, not alot. 

Seems almost hard to believe, but i've triple checked signal to drive, and even measured orientation speed with tachometer, always exactly the same. And would always come up shorter at low speeds.